<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Autovermietung: ICar Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Autovermietung
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_i_car.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_i_car-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ICar Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a> class.  
 <a href="class_i_car.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_i_car_8h_source.html">ICar.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ICar:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_i_car.png" usemap="#ICar_map" alt=""/>
  <map id="ICar_map" name="ICar_map">
<area href="class_car.html" title="Header for the Car class." alt="Car" shape="rect" coords="0,56,94,80"/>
<area href="class_extras.html" title="Header for the Extras class." alt="Extras" shape="rect" coords="208,56,302,80"/>
<area href="class_compact_car.html" title="Header for the CompactCar class." alt="CompactCar" shape="rect" coords="104,112,198,136"/>
<area href="class_mid_range_car.html" title="Header for the MidRangeCar class." alt="MidRangeCar" shape="rect" coords="104,168,198,192"/>
<area href="class_premium_car.html" title="Header for the PremiumCar class." alt="PremiumCar" shape="rect" coords="104,224,198,248"/>
<area href="class_s_u_v.html" title="Header for the SUV class." alt="SUV" shape="rect" coords="104,280,198,304"/>
<area href="class_air_conditioner.html" title="Header for the AirConditioner class." alt="AirConditioner" shape="rect" coords="312,112,406,136"/>
<area href="class_cruise_control.html" title="Header for the CruiseControl class." alt="CruiseControl" shape="rect" coords="312,168,406,192"/>
<area href="class_navigation.html" title="Header for the Navigation class." alt="Navigation" shape="rect" coords="312,224,406,248"/>
<area href="class_xenon.html" title="Header for the Xenon class." alt="Xenon" shape="rect" coords="312,280,406,304"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1c5050a1e2aca8702bd4724985cdb3b0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c5050a1e2aca8702bd4724985cdb3b0"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#a1c5050a1e2aca8702bd4724985cdb3b0">~ICar</a> ()</td></tr>
<tr class="memdesc:a1c5050a1e2aca8702bd4724985cdb3b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The DTor of <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a>. Implemented to make the DTor virtual. <br/></td></tr>
<tr class="separator:a1c5050a1e2aca8702bd4724985cdb3b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d5e09ba99c1c0a7cd99cb1f4f5ec543"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d5e09ba99c1c0a7cd99cb1f4f5ec543"></a>
virtual std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#a6d5e09ba99c1c0a7cd99cb1f4f5ec543">GetManufacturer</a> () const =0</td></tr>
<tr class="memdesc:a6d5e09ba99c1c0a7cd99cb1f4f5ec543"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the manufacturer of the car. <br/></td></tr>
<tr class="separator:a6d5e09ba99c1c0a7cd99cb1f4f5ec543"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5a7320b095c0f3f31801dc15d17f870"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5a7320b095c0f3f31801dc15d17f870"></a>
virtual float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#ad5a7320b095c0f3f31801dc15d17f870">GetPrice</a> () const =0</td></tr>
<tr class="memdesc:ad5a7320b095c0f3f31801dc15d17f870"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the price of a car + its extras. <br/></td></tr>
<tr class="separator:ad5a7320b095c0f3f31801dc15d17f870"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2668750bd35cdeed2bcb5687b1f75e39"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2668750bd35cdeed2bcb5687b1f75e39"></a>
virtual std::string const &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#a2668750bd35cdeed2bcb5687b1f75e39">GetType</a> () const =0</td></tr>
<tr class="memdesc:a2668750bd35cdeed2bcb5687b1f75e39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the Type of the <a class="el" href="class_car.html" title="Header for the Car class.">Car</a>. <br/></td></tr>
<tr class="separator:a2668750bd35cdeed2bcb5687b1f75e39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add7849531c3c3d34251abc569ca0de81"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_car.html#add7849531c3c3d34251abc569ca0de81">Print</a> (std::ostream &amp;out) const =0</td></tr>
<tr class="memdesc:add7849531c3c3d34251abc569ca0de81"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prints a car including its extras.  <a href="#add7849531c3c3d34251abc569ca0de81"></a><br/></td></tr>
<tr class="separator:add7849531c3c3d34251abc569ca0de81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the <a class="el" href="class_i_car.html" title="Header for the ICar class.">ICar</a> class. </p>
<p>Interface for cars and extras.</p>
<p>This class is the Interface for all Cars and Decorators. In terms of Designpatterns it's the component. Cars are concrete components and extras are decorators.</p>
<p>The Cars which are decorated are freed automatically.</p>
<dl class="section author"><dt>Author</dt><dd>Thomas Pfeiffer </dd></dl>
<dl class="section date"><dt>Date</dt><dd>20.11.2012 </dd></dl>

<p>Definition at line <a class="el" href="_i_car_8h_source.html#l00018">18</a> of file <a class="el" href="_i_car_8h_source.html">ICar.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="add7849531c3c3d34251abc569ca0de81"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void ICar::Print </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>out</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prints a car including its extras. </p>
<p>The function Print prints an Extra including the ICars it decorates to the ostream out </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">out</td><td>The ostream you want to print to </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_extras.html#af85e9f1632a5aba46e52e6b05ce2e3a6">Extras</a>, and <a class="el" href="class_car.html#a44a178a353f2e2a254bd43dab7fdcc89">Car</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_i_car.html">ICar</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
